<ul class="sf_admin_actions">
<?php if ($form->isNew()): ?>
  <?php echo $helper->linkToList(array(  'params' =>   array(  ),  'class_suffix' => 'list',  'label' => 'Back to list',)) ?>
  <?php echo $helper->linkToSave($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save',  'label' => 'Generate',)) ?>
<?php endif; ?>
</ul>

<script type="text/javascript">
    $('.sf_admin_action_save input').click(function(){
        $(this).attr('disabled','disabled');
        $('#sf_admin_container > h1').after('<div id="generate_notice" style="display:none" class="notice">Please wait for the generation process ...</div>')
        $('#generate_notice').slideDown();
    });
</script>